package com.overlook.somniferous.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户相关异常信息表
 */
@ApiModel(description="用户相关异常信息表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_exception_record")
public class UserExceptionRecord implements Serializable {
    @TableField(value = "id")
    @ApiModelProperty(value="")
    @Size(max = 100,message = "最大长度要小于 100")
    private String id;

    /**
     * 异常名称
     */
    @TableField(value = "exception_name")
    @ApiModelProperty(value="异常名称")
    @Size(max = 100,message = "异常名称最大长度要小于 100")
    private String exceptionName;

    /**
     * 异常原因
     */
    @TableField(value = "exception_reason")
    @ApiModelProperty(value="异常原因")
    @Size(max = 100,message = "异常原因最大长度要小于 100")
    private String exceptionReason;

    /**
     * 异常时间
     */
    @TableField(value = "exception_time")
    @ApiModelProperty(value="异常时间")
    @Size(max = 100,message = "异常时间最大长度要小于 100")
    private String exceptionTime;

    /**
     * 异常执行次数
     */
    @TableField(value = "exception_count")
    @ApiModelProperty(value="异常执行次数")
    @Size(max = 100,message = "异常执行次数最大长度要小于 100")
    private String exceptionCount;

    /**
     * 异常触发人
     */
    @TableField(value = "exception_by")
    @ApiModelProperty(value="异常触发人")
    @Size(max = 100,message = "异常触发人最大长度要小于 100")
    private String exceptionBy;

    /**
     * 异常任务
     */
    @TableField(value = "exception_task")
    @ApiModelProperty(value="异常任务")
    @Size(max = 100,message = "异常任务最大长度要小于 100")
    private String exceptionTask;

    private static final long serialVersionUID = 1L;
}